<template>
  <!-- 卡片划拨 -->
  <div class="app-container">
    <el-form ref="form" :model="form" label-width="150px">
      <card-find v-model="form.code_zone" />

      <el-form-item>
        <el-button type="primary" @click="submit">确认回拨</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { postCardUnAssign } from '@/api/card';
import CardFind from './components/CardFind';

export default {
  components: {
    CardFind,
  },
  data() {
    return {
      form: {},
    };
  },
  methods: {
    async submit() {
      await postCardUnAssign({
        form: this.form,
      });
      this.$message({ message: '操作成功！', type: 'success' });
      setTimeout(() => this.$router.go(-1), 500);
    },
  },
};
</script>

<style lang="scss" scoped>
.app-container {
  padding: 40px 5%;

  .line {
    text-align: center;
  }
}
</style>
